package com.codingclub.domain.convert;

import com.codingclub.domain.bo.SubjectCategoryBO;
import com.codingclub.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectCategoryConverter {
    SubjectCategoryConverter INSTANCE=Mappers.getMapper(SubjectCategoryConverter.class);

    SubjectCategory covertBoToEntity(SubjectCategoryBO categoryBO);

    List<SubjectCategoryBO> covertBoToEntity(List<SubjectCategory> categorys);
}
